<?php echo($this->Html->script('jquery.min')); ?>
<?php echo($this->Html->script('aes')); ?>

<script>

 var key = "arauz";
 var string = "result:mario,param1:corredera,param2:corredera,param3:verdejo,result:mario,param1:corredera,param2:corredera,param3:verdejo,result:mario,param1:corredera,param2:corredera,param3:verdejo";
 var output = "";
 
 var encrypt = encrypt(string,key);
 var decrypt = decrypt(encrypt,key);
 
document.write("Javascript-> "+encrypt);


$.ajax({
    url: "crear_nou_usuari.php",
    data: "c="+encrypt,
    type: "POST",			      
        beforeSend: function(){ //mostra procesant en el dialog
    },
    success: function(data){
    	alert("asd");
    				
 	}
});




</script>




